Break even stop loss (% of instrument price)Simply proof of concept to place a stop loss a percentage below entry price and move it to break even if the price moves the same percentage above the entre price.
在脚本中搜索"stop loss"
EMA and MACD with Trailing Stop Loss (by Coinrule)An exponential moving average ( EMA ) is a type of moving average (MA) that places a greater weight and significance on the most recent data points. The exponential moving average is also referred to as the exponentially weighted moving average. An exponentially weighted moving average reacts more significantly to recent price changes than a simple moving average simple moving average ( SMA ), which applies an equal weight to all observations in the period.
Moving average convergence divergence ( MACD ) is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price. The MACD is calculated by subtracting the 26-period exponential moving average ( EMA ) from the 12-period EMA.
The result of that calculation is the MACD line. A nine-day EMA of the MACD called the "signal line," is then plotted on top of the MACD line, which can function as a trigger for buy and sell signals. Traders may buy the security when the MACD crosses above its signal line and sell—or short—the security when the MACD crosses below the signal line. Moving average convergence divergence ( MACD ) indicators can be interpreted in several ways, but the more common methods are crossovers, divergences, and rapid rises/falls.
The Strategy enters and closes the trade when the following conditions are met:
LONG
The MACD histogram turns bearish
EMA7 is greater than EMA14
EXIT
Price increases 3% trailing
Price decreases 1% trailing
This strategy is back-tested from 1 January 2022 to simulate how the strategy would work in a bear market and provides good returns.
Pairs that produce very strong results include XRPUSDT on the 1-minute timeframe. This short timeframe means that this strategy opens and closes trades regularly
In order to further improve the strategy, the EMA can be changed from 7 and 14 to, say, EMA20 and EMA50. Furthermore, the trailing stop loss can also be changed to ideally suit the user to match their needs.
The strategy assumes each order is using 30% of the available coins to make the results more realistic and to simulate you only ran this strategy on 30% of your holdings. A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.
Oversold RSI with Tight Stop-Loss Strategy (by Coinrule)KRAKEN:LINKUSD
This is one of the best strategies that can be used to get familiar with technical indicators and start to include them in your rules on Coinrule .
ENTRY
1. This trading system uses the RSI (Relative Strength Index) to anticipate good points to enter positions. RSI is a technical indicator frequently used in trading. It works by measuring the speed and change of price movements to determine whether a coin is oversold (indicating a good entry point) or overbought (indicating a point of exit/entry for a short position). The RSI oscillates between 0 and 100 and is traditionally considered overbought when over 70 and oversold when below 30.
2. To pick the right moment to buy, the strategy enters a trade when the RSI falls below 30 indicating the coin is oversold and primed for a trend reversal.
EXIT
The strategy then exits the position when the price appreciates 7% from the point of entry. The position also maintains a tight stop-loss and closes the position if the price depreciates 1% from the entry price. The idea behind this is to cut your losing trades fast and let your winners ride.
The best time frame for this strategy based on our back testing data is the daily. Shorter time frames can also work well on certain coins, however in our experience, the daily works best. Feel free to experiment with this script and test it on a variety of your coins! With our back testing data a trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange by volume. In the example shown, this strategy made a handsome net profit of 52.6% on Chainlink with 66.67% of trades being profitable.
You can execute this strategy on your favorite exchanges with Coinrule .
isamuch - 2MA Cross and Stop Lossสัญญาณซื้อ/ขาย : มาจาก Moving Average สองเส้นตัดกัน
Stop Loss : มาจากราคาต่ำสุด/สูงสุดของช่วงระหว่าง Moving Average สองเส้นตัดกันก่อนหน้ากับ Moving Average ตัดกันปัจจุบัน
Parabolic SAR Strategy With take profit and stop lossDo not make it too difficult!
This is my first strategy! I took the Parabolic SAR Strategy and added Stop Loss and Take profit, and I can see some fantastic results in 2h-3h-4h on some of the Crypto coins.
This is for training only, and I do not recommend using it as part of a trading bot, however, I do myself.
MultiPrice AlertThis is an alert script using Pinescript version 4. This enables one to set 5 alerts (1 StopLoss, 4 Targets), on 3 different symbols, at using a single alert in the UI.
Every visible line will only appear on the symbols that are selected. After setting targets when making an alert, select this indicator as a condition. Change the name to whatever you want, usually the names of the set of tickers.
The Alert message is dyanmic showing which Symbol with each type of alert, at whatever price.
Ability to disable the targets + symbols.
Alerts work by Stop Loss crossing under price and Targets Cross Over. Enabling the "Short" Targets reverses this.
The line that is being displayed is actually the price of the asset being moved over x number of bars. I have not found a way to plot a traditional horizontal line, as the code for it uses a fixed price.
As it being a user input, it is a variable. Any help with this would be appreicated.
Alerts are set to once per bar.
Known bug that sometimes if the prices that you set are inside the current candle stick, then your alert will immeaditally fire, either change the timeframe or let it fire and wait fo
After a target is hit, I reccomend setting the alert to 0 and REMAKING the alert. You MUST REMAKE THE ALERT AFTER ANY CHANGES. This script WILL NOT CHANGE ALERTS AS YOU CHANGE SETTINGS.
TradingView Alerts are not this smart , at least I haven't found a way to do this yet.
Anti-Volume Stop Loss multi timeframe [LM]Hello Traders,
I would like to introduce you fork of popular indicator Anti-Volume Stop Loss created by Buff Dormeier and cracked here on tradingview by @Rafka so shout out to him. I have tried to crack it myself as well as I'm big fan of Dormeier's work but it's not easy so really big thanks to Rafka
I have refactored original script and have included multi timeframe setting.
As its shown below you can select higher timeframe to track lower one:
Enjoy!
Bitlinc MARSI Study AST w/ Take Profit & Stop loss - beta 0.1This script is beta 0.1 - will update as soon as the script is tradable
This script is based on AST on a 10 minute timeframe. You can change the asset and the timeframe for any asset you want to trade, but for it to work correct ALL settings have to be testes in the Strategy section of the TradingView. Each assets and timeframe require a different mixture of settings. This is NOT a one settings fits all trading for all assets on any timeframe. Below are the settings and explanation on how it works.
How it fires a buy / sell:
The script will plot an RSI with upper and lower bands in a separate indicator window. The idea behind this script is to fire a LONG when MA crosses OVER lower band and fire a SHORT when the MA crosses under the lower band. Each order that fires is an OCO (Order Cancels Order) for pyramiding.
Settings:
You have full control of these settings as mentioned above, you must configure every part of this script for each asset and timeframe you trade.
- Length of MA
- Length
- Upper bands of RSI
- Lower bands of RSI
- Take profit percentage
- Stop loss percentage
- Month to start and end the strategy (within 2020)
- Day to start and end the strategy (within 2020)
- Quantity type
- Slippage
- Pyramiding
***Remember that after the signal to enter or exit a trade is fired, the alert will trigger AFTER the close of the candle that caused the tigger to fire
ATR Stop Loss LONG/SHORT by melihgulerYou can monitor the stop loss level according to ATR in 2 ways (Long/Short).
RSI + EMA+ MTF Stop-LossThis is a simple RSI with multiple MTF (No security) to help with direction short and long-term.
The rsi for the current chart has a noise reduction, while the rest are based on ma's.
I have supplied an extra flexible mtf rsi ma for potential adjustable/long-term stop-loss or direction identification.
Enjoy
RSI Stop LossExperiment for using RSI as a stop loss value, shows where the price will be when the RSI increases or decreases by a specified amount.
poki buy and sell Take profit and stop lossThis indicator is based on modelius model of lazy bear weis model with ATR for the buy=B sell =S
in addition there is Take profit and stop loss in % both for short and for long
next stage is to know the resistance level and support based on bollinger marked in blue and red dots
Also included Parabolic Sar (blue and red dots rising up or down)
The color of bulish or bearish zone is based on the cross of Hull avreage and linear regression ( for each time set may need different setting for accuracy )
So how to use this scrupt to better profit
1. if you have B signal and its on lower support level then its good starting place for buy. look at the Parabolic Sar if its in agreement. The exit can be either by S =sell, Take profit that you decide on % or by end of Parabolic SAR upward
2. exact the oposite for short
Play with setting for the desired results or change modify this script for your purpose
Pivot Stop LossHere we intend to use pivot points for stop loss and take profit. This has the added benefit of helping you to visualize support and resistance levels.
Hull modelius take profit and stop lossThis model has Hull moving average, fibs in form of Bollinger ,SMA and Modelius model with ATR for buy and sell power based on weis volume. Inside alerts for buy and sell. take profit and stop loss for both longs and shorts
so have fun
SL + TP Dynamics - By M.LolasStop Loss e Take Profit dinâmicos para operações semiautomatizadas.
By M.Lolas
STOP-LOSS-RSI with Edge-Preserving Filter Strategy V2Modified RSI strategy with entry and exit points.
I have allowed for High and Low risk for anyone interested in using it (NO GUARANTEES. DO YOUR OWN RESEARCH).
I will later consider incorporating the standard RSI for exit points. I am sure returns will increase based on current test runs :)
Returns look good based on the strategy result.
Scalp Hunter [Scalping-Algo]═══════════════════════════════════════════════════════════════════════════════
🎯 SCALP HUNTER
Precision ATR Momentum System for Fast Timeframes
═══════════════════════════════════════════════════════════════════════════════
📌 OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Scalp Hunter is a high-accuracy scalping indicator designed specifically for
low timeframe trading (3M, 4M, 5M). It combines ATR-based trailing stops with
multiple confirmation filters to deliver clean, actionable signals.
✅ No Repaint
✅ No Delay
✅ Confirmed Signals Only
✅ Multi-Filter Validation
═══════════════════════════════════════════════════════════════════════════════
⚙️ HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The indicator uses an ATR Trailing Stop as its core engine. When price crosses
the trail line, a potential signal is generated. But here's what makes it
accurate — signals must pass through 4 additional filters:
│
├─ 📊 PRICE ACTION FILTER
│ • Candle must close in signal direction
│ • Body size > 50% of full candle range
│ • Confirms strong momentum, not weak wicks
│
├─ 📈 VOLUME FILTER
│ • Volume must exceed 1.1x of 10-period average
│ • Filters out low-conviction moves
│ • Toggle on/off in settings
│
├─ 📉 EMA TREND FILTER
│ • Long signals: price must be above 21 EMA
│ • Short signals: price must be below 21 EMA
│ • Keeps you trading with the trend
│
└─ 🔥 MOMENTUM FILTER (RSI)
• RSI must confirm direction (>50 for longs, <50 for shorts)
• Avoids overbought/oversold extremes
• Fast 7-period RSI tuned for scalping
═══════════════════════════════════════════════════════════════════════════════
🎨 VISUAL GUIDE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🟢 GREEN TRIANGLE (▲) = Long Entry Signal
🔴 RED TRIANGLE (▼) = Short Entry Signal
━━ GREEN LINE = Bullish Trail Stop (support)
━━ RED LINE = Bearish Trail Stop (resistance)
🟢 GREEN BARS = Bullish Trend Active
🔴 RED BARS = Bearish Trend Active
═══════════════════════════════════════════════════════════════════════════════
📖 HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 1: Add to Chart
• Apply indicator to 3M, 4M, or 5M chart
• Works on any liquid market (crypto, forex, stocks, futures)
STEP 2: Wait for Signal
• 🟢 Triangle appears below bar = LONG opportunity
• 🔴 Triangle appears above bar = SHORT opportunity
• Signal fires at bar OPEN (no repaint, you can act immediately)
STEP 3: Entry
• Enter at market or use limit order near signal bar close
• Trail stop line shows your initial stop level
STEP 4: Stop Loss
• Place stop just beyond the trail line
• Long: stop below green trail line
• Short: stop above red trail line
STEP 5: Take Profit
• Option A: Fixed R:R (1:1.5 or 1:2 recommended)
• Option B: Trail your stop using the indicator line
• Option C: Exit when opposite signal appears
═══════════════════════════════════════════════════════════════════════════════
⚡ RECOMMENDED SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
For 3M / 4M / 5M (Default - Aggressive Scalping):
• ATR Sensitivity: 0.8
• ATR Length: 8
• RSI Length: 7
• EMA Length: 21
• All filters: ON
For 15M / 30M (Slower Scalps):
• ATR Sensitivity: 1.0
• ATR Length: 10
• RSI Length: 10
• EMA Length: 34
• All filters: ON
For Volatile Markets (Crypto/News Events):
• ATR Sensitivity: 1.2
• ATR Length: 12
• Volume Filter: ON (important!)
• Other filters: ON
═══════════════════════════════════════════════════════════════════════════════
🔔 ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Three alert conditions available:
📲 "Scalp Long" → Fires on long entry signal
📲 "Scalp Short" → Fires on short entry signal
📲 "Any Signal" → Fires on both
To set up:
1. Click "Alert" button (clock icon)
2. Select "Scalp Hunter "
3. Choose condition
4. Set notification method (popup, email, webhook, mobile)
═══════════════════════════════════════════════════════════════════════════════
⚠️ RISK DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Trading involves substantial risk. This indicator is a tool, not financial
advice. Past performance does not guarantee future results. Always:
• Use proper position sizing
• Set stop losses on every trade
• Never risk more than you can afford to lose
• Backtest before live trading
• Combine with your own analysis
═══════════════════════════════════════════════════════════════════════════════
💡 TIPS FOR BEST RESULTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✦ Trade during high-volume sessions (London/NY open)
✦ Avoid signals during major news releases
✦ Confirm with higher timeframe trend
✦ Best results on liquid pairs/assets
✦ Keep all filters ON for highest accuracy
✦ Turn off filters only if you need more signals
═══════════════════════════════════════════════════════════════════════════════
📊 WHAT MAKES THIS DIFFERENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Most ATR trailing indicators give too many signals. Scalp Hunter is different:
❌ Other indicators: Signal on every trail cross
✅ Scalp Hunter: Signal only when 5 conditions align
This means fewer trades, but higher probability setups.
═══════════════════════════════════════════════════════════════════════════════
Professional Grid & Reversal Bot v10 (Binance Style)Professional Grid & Reversal Bot v10 (Binance Style) – Open Source & Educational
About this Script:
This script is an advanced Grid Trading & Smart Reversal strategy, inspired by professional Binance-style execution. It is designed as an educational, open-source tool for traders who want to understand market dynamics, grid logic, and risk management.
How it Works:
1️⃣ Grid Execution:
• Divides the price range between the high and low into multiple levels (Grids).
• Opens Buy orders in the lower half and Sell orders in the upper half.
• Levels are calculated dynamically based on the highest and lowest prices over a selected lookback period.
2️⃣ Smart Reversal System:
• Detects price touches on the high or low range boundaries to identify potential reversal points.
• Opens Buy orders at the lows and Sell orders at the highs using a configurable confirmation percentage (revPct).
• Helps traders capture short-term price swings effectively.
3️⃣ Risk & Size Management:
• Position sizing based on USD amount and leverage.
• Automatic Take Profit (TP) and Stop Loss (SL) for every trade.
• Controls overtrading via the "pyramiding" parameter (max open trades).
4️⃣ Advanced Visualization:
• Plots the grid range with high/low levels and fills the background for clear context.
• Highlights potential Supply and Demand Zones.
• Displays a dynamic "Binance-style" Order Book table showing Side, Price, Quantity, and PnL.
5️⃣ Key Counters & Indicators:
• levelsArr → Stores all grid levels for execution and plotting.
• touchedHigh / touchedLow → Monitors range touches to trigger reversals.
• strategy.openprofit → Displays live open trade PnL directly on the chart.
Additional Features:
• Supports both English and Arabic languages.
• Dark Theme optimized for readability.
• Dynamic control panel updates on every bar.
• Flexible settings for Auto or Manual grid range updates.
User Guidance:
• This script is for educational purposes only; it does not guarantee profits.
• We recommend adjusting Grid Levels, Reversal Percentage, and Trade Size to experiment with different strategies.
Community Engagement:
• Suggestions and improvements are welcome! 💡
• If you have ideas for new features, let's develop them together to enhance learning.
• Please support the script with a Like & Boost if you find it useful.
• Encourages knowledge sharing to improve collective performance.
License:
Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
Free for educational use only. Please give credit to the author when sharing or modifying the script.






















